#ifndef MYTCPSERVER_H
#define MYTCPSERVER_H

#include <datatype.h>
#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
#include <QDebug>
#include <QSqlDatabase>
#include <QSqlQuery>

class MyTcpServer : public QObject
{
    Q_OBJECT
public:
    explicit MyTcpServer(QObject *parent = 0);
    void data_print(UCHAR* data,int length);
    int count;
     QSqlDatabase db;

signals:    
public slots:
    void newConnection();
    void readMessage();

private:
    QTcpServer *server;
};

#endif // MYTCPSERVER_H
